<template>
  <div class="list">
    <img :src="item.img" alt="" />
    <p>{{ item.desc }}</p>
    <li>
      <b>{{ item.name }}</b>
      <span>+</span>
    </li>
  </div>
</template>

<script>
export default {
  props: {
    item: Object,
  },
  components: {},
};
</script>

<style lang="scss" scoped>
.list {
  width: 46%;
  height: 280px;
  box-shadow: 5px 5px 5px #ccc;
  margin-left: 10px;
  margin-bottom: 10px;
  img {
    width: 100%;
    height: 180px;
  }

  p {
    text-indent: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }
  b {
    color: red;
  }
  li {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    span {
      width: 20px;
      height: 20px;
      background-color: red;
      text-align: center;
      line-height: 20px;
      border-radius: 100%;
      color: #fff;
    }
  }
}
</style>
